package view.dialogs;

import javax.swing.JPanel;

import view.listeners.CancelListener;
import view.views.dialogButtonViews.CancelButtonPanel;

public class InfoDialog extends MessageDialog {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	public InfoDialog(String title, String info) {
		super(title, info);

	}

	@Override
	protected JPanel addButtons() {
		CancelButtonPanel buttonPanel = new CancelButtonPanel();
		buttonPanel.getCancelButton().addActionListener(
				new CancelListener(this));
		return buttonPanel;
	}

}
